export const vFocus2 = {
    //指令的生命周期，代表这个指定绑定节点被挂载
    mounted(el:any){
        el.focus()
    }
}
export const vBgcolor = {
    mounted(el:any){
        el.style.backgroundColor = "red"
    }
}

export const vAuth = {
    mounted(el:any,binding:any) {
        const role = localStorage.role;
        const array = binding.value;
        if(array.indexOf(role) == -1){
            el.remove()
        }
    },
}